package com.meteor.convert;

import com.meteor.entity.Community;
import com.meteor.entity.Complaint;
import com.meteor.vo.CommunityVO;
import com.meteor.vo.ComplaintVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


@Mapper
public interface CommunityConvert {

    CommunityConvert INSTANCE = Mappers.getMapper(CommunityConvert.class);

    CommunityVO convert(Community entity);

    Community convert(CommunityVO vo);

    List<CommunityVO> convertList(List<Community> list);

}
